import http from './request'


// 请求城市的列表数据
export const getCityListApi = () => http.get('/api/city')

// 根据关键字，查询城市名称
export const searchCityApi = (kw) =>
  http.get('/api/city/search', { params: { kw } })

// 城市定位
export const getLocationApi = (key) =>
  http.get('/api/city/location', { params: { key } })
